package com.tuanzi.loan.business.entity.settlementsystem;

import com.tuanzi.loan.core.entity.AuditEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

/**
 * @author caiwanlin
 * @create 2018-08-16 18:12
 */
@Data
@Entity
@Table(name = "loan_settlement_company")
@EqualsAndHashCode(callSuper = true)
public class SettlementCompany extends AuditEntity{
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @NotBlank
    @Column(name = "company_name")
    private String companyName;

    @Column(name = "is_bill")
    private Boolean isBill = true;

    @Column(name = "bill_content")
    private Integer billContent;

    @Column(name = "tax_number")
    private String taxNumber;

    @Column(name = "phone")
    private String phone;

    @Column(name = "bill_type")
    private Integer billType;

    @Column(name = "bank_address")
    private String bankAddress;

    @Column(name = "bank_account")
    private String bankAccount;

    @Column(name = "bank_number")
    private String bankNumber;

    @Column(name = "bill_address")
    private String billAddress;

    @Column(name = "receive_name")
    private String receiveName;

    @Column(name = "receive_phone")
    private String receivePhone;

    @Column(name = "receive_address")
    private String receiveAddress;

    @Column(name = "prepay_amount")
    private Double prepayAmount;

    @Column(name = "expend_amount")
    private Double expendAmount;

    @Column(name = "remark")
    private String remark;
}
